package validate

import (
	"gin/common"
	"github.com/Gre-Z/common/jtime"
)

type AddWordSpeechWrapper struct {
	Data AddWordSpeech `json:"data" binding:"required"`
}

type UpdateWordSpeechWrapper struct {
	Data UpdateWordSpeech `json:"data" binding:"required"`
}
type UpdateWordSpeech struct {
	Id          int64            `json:"id" binding:"required"`
	Code        string           `json:"code"`
	Name        string           `json:"name"`
	Description string           `json:"description"`
	SourceType  string           `json:"source_type"`
	Created     jtime.TstampTime `json:"created"`
	Updated     jtime.TstampTime `json:"updated"`
}

type AddWordSpeech struct {
	Id          int64            `json:"id"`
	Code        string           `json:"code" binding:"required"`
	Name        string           `json:"name" binding:"required"`
	Description string           `json:"description"`
	SourceType  string           `json:"source_type" binding:"required,oneof=tc local"`
	Created     jtime.TstampTime `json:"created"`
	Updated     jtime.TstampTime `json:"updated"`
}

type SelectWordSpeechQuery struct {
	Param common.QueryParam `json:"param" binding:"required"`
}
type DeleteWordSpeechParam struct {
	Param common.Filter `json:"param" binding:"required"`
}
